import Vue from 'vue'
import Router from 'vue-router'
import demo from './router/demo/demo'
import homePage from './router/homePage/homePage'
import channelPage from './router/channelPage/channelPage'
// import productDetails from './router/productDetails/productDetails'
// import orderBooking from './router/orderBooking/orderBooking'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      redirect: '/homePage'
    },
    ...demo,
    ...homePage, // 首页
    ...channelPage // 频道页
    // ...productDetails, // 产品详情页
    // ...orderBooking // 订单填写页
  ]
})
